package com.franklin.java.api.mybatis.dom.model;

import com.intellij.util.xml.*;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * Mapper标签
 * @author Franklin
 * @since 2021/08/20 23:08
 */
public interface Mapper extends DomElement {

    @Required
    @NameValue
    @NotNull
    @Attribute("namespace")
    GenericAttributeValue<String> getNamespace();

    @SubTagList("select")
    List<Select> getSelects();

    @SubTagList("sql")
    List<Sql> getSqlList();
}
